import { PartialType } from '@nestjs/swagger';
import { CreateMenuDto } from './create-menu.dto';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateMenuDto extends PartialType(CreateMenuDto) {
  @ApiPropertyOptional({ description: '菜单路径', example: '/dashboard' })
  path?: string;

  @ApiPropertyOptional({ description: '菜单名称', example: 'Dashboard' })
  name?: string;

  @ApiPropertyOptional({
    description: '重定向路径',
    example: '/dashboard/analysis',
  })
  redirect?: string;

  @ApiPropertyOptional({
    description: '菜单元信息',
    example: '{"title": "Dashboard"}',
  })
  meta?: string;

  @ApiPropertyOptional({ description: '父菜单 ID', example: 1 })
  parentId?: number;

  @ApiPropertyOptional({
    description: '菜单状态，1: 可用，0: 不可用',
    example: 1,
  })
  active?: number;
}
